const express = require('express');

var server = express();


//目录1 /user/

var rotueUser = express.Router();

rotueUser.get('/1.html',function(req,res){
    res.send('1.html');
});


rotueUser.get('/2.html',function(req, res){
    res.send('2.html');
});

server.use('/user',rotueUser);

//目录2 /article/
var routeArticle = express.Router();
server.use('/article',routeArticle);

routeArticle.get('/1.html',function(req,res){
    res.send('a/1.html');
});


routeArticle.get('/2.html',function(req, res){
    res.send('a/2.html');
});


server.listen(8080);